package com.disapand.strongarmy

import com.disapand.strongarmy.service.*
import org.junit.jupiter.api.*
import org.springframework.boot.test.context.*
import javax.annotation.*

/**
 *
 * @auth disapand
 * @date 2021/11/3 - 16:33 - 星期三
 *
 */
@SpringBootTest
class AccountTest {

    @Resource
    lateinit var accountService: AccountService

    @Test
    fun getRoles() {
        var result = accountService.getRoles(1)
        result.forEach(::println)
        result = accountService.getRoles(2)
        result.forEach(::println)
    }

    @Test
    fun updateRoles() {
        accountService.updateRoles(1, listOf(1, 2, 3, 4))
    }
}